package com.kfit.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.kfit.demo.bean.Demo;
import com.kfit.service.DemoService;

@RestController
@RequestMapping("/demo")
public class DemoController {
	@Autowired
	private DemoService service;

	@RequestMapping("/show")
	public Demo show(Integer id) {
		return service.show(id);
	}
}
